# -*- coding: utf-8 -*-

"""
Module implementing MainWindow.
"""

from PyQt4.QtGui import QMainWindow, QMessageBox
from PyQt4.QtCore import pyqtSignature

from Ui_mainwindow import Ui_MainWindow

class MainWindow(QMainWindow, Ui_MainWindow):
    """
    Class documentation goes here.
    """
    def __init__(self, parent = None):
        """
        Constructor
        """
        QMainWindow.__init__(self, parent)
        self.setupUi(self)
    
    @pyqtSignature("")
    def on_actionTest_activated(self):
        """
        faire un helloWorld.
        """
        QMessageBox.information(None,
            self.trUtf8("fenêtre de test"),
            self.trUtf8("""Ceci est le message de la fenetre de test"""),
            QMessageBox.StandardButtons(\
                QMessageBox.Ok),
            QMessageBox.Ok)
    
    @pyqtSignature("")
    def on_action_propos_activated(self):
        """
        affiche la fenetre about.
        """
        about()
